package com.huxt.Link.LinkedList;

public class Main {

    public static void main(String[] args) {
//        LinkedList<Integer> linkedList = new LinkedList<>();
//        for(int i = 6 ; i < 20 ; i ++){
//            linkedList.addFirst(i);
//        }
//        linkedList.add(6, 666);
//        System.out.println(linkedList);

        DummyHeadLinkedList<Integer> dummyHeadLinkedList = new DummyHeadLinkedList<>();
        for(int i = 6 ; i < 20 ; i ++){
            dummyHeadLinkedList.addFirst(i);
        }
        System.out.println(dummyHeadLinkedList);


//        dummyHeadLinkedList.add(6, 666);
//        System.out.println(dummyHeadLinkedList);
//
//        dummyHeadLinkedList.remove(2);
//        System.out.println(dummyHeadLinkedList);
//
//        dummyHeadLinkedList.removeFirst();
//        System.out.println(dummyHeadLinkedList);
//
//        dummyHeadLinkedList.removeLast();
//        System.out.println(dummyHeadLinkedList);

    }
}
